package com.kfm.pm;

public class Demo04 {

    public static void main(String[] args) {
        Character c = 'A';  // 65
        Character c2 = 'a'; // 97
        System.out.println(c.compareTo(c2));
        String str = "kaifamiaoKKKK";
        char c1 = str.charAt(1);
        Character.isDigit(c1);
        Character.isLetter(c1);
        // 是否是数字
        System.out.println(Character.isDigit(c));
        // 是否是字母
        System.out.println(Character.isLetter(c2));
        // 是否是数字或字母
        System.out.println(Character.isLetterOrDigit(2));
        // 判断是否是小写字母
        System.out.println(Character.isLowerCase(c2));
        // 是否是大写字母
        System.out.println(Character.isUpperCase(c2));
    }
}
